﻿<ion-view view-title="公司详情" cache-view="true" hide-back-button="false" ng-init="init()">
  <ion-content class="gray_back">
    <section class="g_main">
      <!-- 个人信息 -->
      <section class="my_info my_truck_info">
        <img ng-src="{{corpInfo.owner_photo}}" alt="">
        <div class="user_info">
          <div class="name"><strong>{{corpInfo.owner_name}}</strong>
            <div style="height:44px;line-height: 41px;display: inline-block;">
              <div class="ivu-rate"><input type="hidden" value="2.5">
                <div class="ivu-rate-star {{corpInfo.score>0?'ivu-rate-star-full':''}}"><span type="half" class="ivu-rate-star-content"></span></div>
                <div class="ivu-rate-star {{corpInfo.score>1?'ivu-rate-star-full':''}}"><span type="half" class="ivu-rate-star-content"></span></div>
                <div class="ivu-rate-star {{corpInfo.score>2?'ivu-rate-star-full':''}}"><span type="half" class="ivu-rate-star-content"></span></div>
                <div class="ivu-rate-star {{corpInfo.score>3?'ivu-rate-star-full':''}}"><span type="half" class="ivu-rate-star-content"></span></div>
                <div class="ivu-rate-star {{corpInfo.score>4?'ivu-rate-star-full':''}}"><span type="half" class="ivu-rate-star-content"></span></div>
              </div>
            </div>
          </div>
          <div class="company"><i class="icon icon_tag_qi">企业认证</i><i class="icon icon_tag_shi">实名认证</i><!--i class="icon icon_tag_che">有车</i><i class="icon icon_tag_piao">发票</i--> <em>{{corpInfo.corp_name}}</em>

          </div>
          <p class="truck_number">{{corpInfo.vehicle_no}}</p>
        </div>
        <div class="contact_info">
          <a ng-href="tel: {{corpInfo.owner_phone}}"><i class="icon icon_tel"></i>电话联系</a>
          <a ng-click="openchat({{'corpInfo.emp_id'}}, {{'corpInfo.owner_name'}}, {{'corpInfo.owner_photo'}})"><i class="icon icon_message"></i>在线联系</a>
        </div>
      </section>
      <!-- 专线管理 -->
      <p ng-show="loadingstep" style="text-align:center">加载专线列表</p>
      <ion-scroll style="height:{{scorllHeight}}px">
        <div style="height:{{listHeight}}px">
          <ion-list>
            <ul class="truck_line_list">
              <li class="line_list" ng-repeat="item in lineList" ng-click="toLineDetail(item.line_pub_id)">
                <div class="direction"><span>{{item.start_area_disp}}</span><BR/><i class="icon icon_go">单程</i><BR/><span style="top: -20px;position: relative;">{{item.end_area_disp}}</span></div>
                <ul style="width:45%">
                  <li>重货价格： <em>{{item.heavy_cargo_price}}</em>元/吨</li>
                  <li>泡货价格： <em>{{item.light_cargo_price}}</em>元/立方</li>
                  <li>起步价格： <em>{{item.base_price}}</em>元</li>
                </ul>
                <div class="go_date" style="width:15%"><strong>{{item.term_of_validity}}</strong>天</div>
              </li>
            </ul>
          </ion-list>
          <ion-infinite-scroll on-infinite="loadMoreRecord()" distance="1" ng-show="showprogress"></ion-infinite-scroll>
        </div>
      </ion-scroll>
    </section>
  </ion-content>
</ion-view>
